package com.rshang.rsdp.service.impl;

import com.rshang.rsdp.entity.TbRole;
import com.rshang.rsdp.mapper.TbRoleMapper;
import com.rshang.rsdp.service.ITbRoleService;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;

import java.util.List;

import org.springframework.stereotype.Service;

/**
 * <p>
 * 角色信息表 服务实现类
 * </p>
 *
 * @author zhangjun
 * @since 2017-07-21
 */
@Service
public class TbRoleServiceImpl extends ServiceImpl<TbRoleMapper, TbRole> implements ITbRoleService {

	@Override
	public List<TbRole> getSystemRole() {
		 EntityWrapper<TbRole> ew = new EntityWrapper<TbRole>();
		 ew.where("YX_BZ={0}", "1");
		 ew.orderBy("ROLE_ID");
		 
		return this.selectList(ew);
	}
	
}
